﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example09.aspx.cs" Inherits="Chapter18.Example09" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 18-9 使用 :checked 选择器</title>
    <style type="text/css">
        :checked + span {
            background-color: red;
            color: white;
            border: thin black solid;
            padding: 5px;
        }
    </style>
</head>
<body>
    <form method="post" action="http://titan:8080/form">
        <p>
            <label for="apples">Do you like apples:</label>
            <input type="checkbox" name="apples" id="apples" />
            <span>This will go red when checked</span>
        </p>
        <input type="submit" value="Submit" />
    </form>
</body>
</html>
